﻿<controls:ChildWindow xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="DynamicChart.UI.Dialogs.SelectYearWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="350" Height="150" 
           Title="选择具体年份" FontSize="14">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="0" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <HyperlinkButton Name="_ctlBtnPrev" Content="...2009" Grid.Column="0" Click="_ctlBtnPrev_Click" IsTabStop="False"/>
            <TextBlock Name="_ctlLabel" Grid.Column="1" Text="0000-0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <HyperlinkButton Name="_ctlBtnNext" Content="2020..." Grid.Column="2" Click="_ctlBtnNext_Click" IsTabStop="False"/>
        </Grid>
        <Grid Grid.Row="1" Name="_ctlPanelYearList">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
        </Grid>

        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="OKButton" Content="确定" Click="OKButton_Click" Width="75" Margin="5"/>
            <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Margin="5"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>